﻿<h2>Documents joints</h2>

<table id="afficher_documents">
	<thead>
		<tr>
			<th>ID</th>
			<th>Numéro de courrier</th>
			<th>Date</th>
			<th>Nom</th>
			<th>Télécharger</th>
		</tr>
	</thead>
<?php 
foreach($this->listeDocuments as $documents) : 
?>
	<tbody>
		<tr>
			<td><?php echo $this->escape($documents->Id_document);?></td>
			<td><?php echo $this->escape($documents->Id_courrier);?></td>
			<td><?php echo $this->escape($documents->Date_ajout);?></td>
			<td><?php echo $this->escape($documents->Nom_document);?></td>
			<td><?php echo "<a href='".$this->escape($documents->Lien)."'><img src='".$this->baseUrl()."/images/boutons/mini_pj.png' alt='pj'/></a> ";?></td>
		</tr>
	</tbody>
<?php 
endforeach;
?>

</table>
<br />




<script type="text/javascript"> 
$(function () {
	tableToGrid("#afficher_documents", {height: "auto", caption: "Liste des documents"});
});
</script>
